home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mint96sb.zoo / src / changes < prev    next >
Encoding:
Text File  |  1992-10-21  |  75.4 KB  |  2,176 lines

  1. Changes are listed in *reverse* order, most recent changes being
  2. first.
  3.  
  4. version 0.96
  5.  
  6. PATCHLEVEL 14::
  7.  
  8. tosfs.c:
  9.     Aaargh! Just after cutting this patch I discovered
  10.     that I had the test backwards.
  11.  
  12. PATCHLEVEL 13::
  13.  
  14. tosfs.c:
  15.     Changed so that Fsfirst()/Fsnext() always return
  16.     upper case, regardless of domain. (MiNT aware
  17.     programs should use the new directory functions.)
  18. dosdir.c: ++akiernan
  19.     Got rid of the special hack for drive x:, since
  20.     drive x: no longer exists.
  21. asm.y: ++akiernan
  22.     Cleaned up a bit.
  23. *.c: ++julian
  24.     Some minor patches for PureC.
  25. dosdir.c: ++julian
  26.     New system call, Dgetcwd(), with a 'size' parameter;
  27.     this doesn't do anything different from Dgetpath
  28.     now, but it's there for future expansion.
  29.  
  30. PATCHLEVEL 12::
  31.  
  32. version.h:
  33.     Update the patchlevel correctly.
  34. pipefs.c,dosfile.c:
  35.     Keep the Unix style semantics for pipes created with
  36.     Fpipe, but not for other fifo's (which by default will
  37.     continue to read the number of bytes requested).
  38.  
  39. PATCHLEVEL 11::
  40.  
  41. tty.c:    ++schwab
  42.     Support word-erase and quote-next-char.
  43. fasttext.c: ++schwab
  44.     support fgcol/bgcol
  45.     (screen_ioctl): tty_ioctl is now called by parent by default if
  46.     EINVFN
  47. signal.c (check_sigs): ++schwab
  48.     Use an int to index signals, not a long
  49. biosfs.c (bios_getxattr): ++schwab
  50.     u:\dev\stdin, etc., get the attributes of
  51.     the associated files
  52. dos.c (p_setuid, p_setgid): ++schwab
  53.     Allow setting to the current real [gu]id
  54. bios.c (checkkeys): ++schwab@ls5.informatik.uni-dortmund.de
  55.     Keys read by do_func_key should not be
  56.     interpreted (esp. UNDO -> SIGQUIT). also recheck shift status
  57.     since do_func_key may take some time
  58. xbios.c: ++entropy@gnu.ai.mit.edu
  59.     Added code to support old (tos < 1.4) Rsconf()
  60.     semantics.
  61. mem.c:
  62.     Changed so that attempts to execute a shared text program
  63.     which has data/bss references in the text segment will
  64.     get an ENOEXEC error instead of ENSMEM.
  65. *.c: ++julian@math.uni-muenster.de
  66.     Applied Julian's purec patches.
  67.  
  68. PATCHLEVEL 10::
  69.  
  70. pipefs.c:
  71.     Changed so that read() on a pipe will return as
  72.     soon as some data is available; this is how
  73.     all Unixes work.
  74. *.c:
  75.     Applied Julian's patches to allow compilation with
  76.     PureC.
  77. main.c:
  78.     New variable, MAXMEM=, for setting maximum memory
  79.     size (in K).
  80. main.c:
  81.     Removed PSEUDODRIVES= command, since "alias" has
  82.     replaced it.
  83. util.c:
  84.     Changed atoi to atol; it's more generally useful.
  85. asmtrans:
  86.     Applied Howard's patches; in particular, made %ifdef
  87.     apply to other commands (like %define) as well as to
  88.     code generation.
  89.     
  90. PATCHLEVEL 9::
  91.  
  92. asmtrans:
  93.     Cleaned up a bit more for cross-compilation.
  94. intr.spp:
  95.     in_kernel can be set while the process is in user mode
  96.     (if the critical error handler calls GEM)
  97. syscall.spp:
  98.     Get rid of some more magic numbers.
  99. bios.c:
  100.     While fixing the mtt bug, a new bug was introduced. So,
  101.     let's try again :-).
  102.  
  103. PATCHLEVEL 8::
  104.  
  105. bios.c:
  106.     Fixed a particularly silly bug in bios.c: in do_bconin(),
  107.     r was being returned without being initialized. Why didn't
  108.     gcc catch this?
  109. *.c:
  110.     Applied Alex's patches for Lattice, and Julian's patches for
  111.     Pure C.
  112. signal.c:
  113.     Kill programs with p_term() instead of terminate() (except for
  114.     signal SIGKILL) so as to allow them a chance to clean up via
  115.     the term_vec vector.
  116. shmfs.c:
  117.     Allow Fattrib() call to change the read-only
  118.     bit. Made Fxattr() return the correct mode
  119.     for shared memory files.
  120. main.c, fasttext.c:
  121.     Allowed HARDSCROLL=AUTO to set the number of
  122.     lines of scrolling to the current screen size.
  123. syscall.spp, inline.h:
  124.     New functions, callout2() and callout1(), with
  125.     less overhead; used by bios.c to call the
  126.     Bconxxx functions.
  127. bios.c:
  128.     Changed calls to Bconxxx functions into
  129.     jumps through the defined vector table in
  130.     low memory, when this is possible (TOS 1.0
  131.     doesn't have the table).
  132. asmtrans, *.spp:
  133.     Added %ifdef, %else, and %endif commands (for
  134.     future expansion). Removed the requirement that
  135.     macros to be expanded be delimited by % signs,
  136.     and cleaned up the definitions. Changed
  137.     "SECTION FOO" to "FOO". Added -purec compilation
  138.     option.
  139. filesys.c:
  140.     Fixed a bug in changedrv (there was no
  141.     check to see if "d" was a BIOS drive before
  142.     aliasdrv[d] was tested).
  143.  
  144. PATCHLEVEL 7::
  145.  
  146. biosfs.c,fasttext.c:
  147.     Fixed incorrect code that assumed TCURSON
  148.     was 0.
  149. makefile:
  150.     Fixed Makefile to work with older versions
  151.     of gmake, as well as generic make programs.
  152.  
  153. PATCHLEVEL 6::
  154.  
  155. *.s:
  156.     Radical overhaul of how assembly language is
  157.     handled. We now provide 2 utility programs,
  158.     "genmagic" (for producing symbolic names for
  159.     various offsets into structures) and "asmtrans"
  160.     (for processing .spp files, replacing macros
  161.     defined by "genmagic" and optionally translating
  162.     Motorola to MIT syntax). Now we only have to
  163.     maintain the .spp files; the Lattice and gcc
  164.     versions of the .s files are generated automatically,
  165.     and as a side benefit we can get rid of magic
  166.     numbers in the .s files and be sure that if we
  167.     change proc.h, the assembly language will be
  168.     updated properly.
  169. main.c,filesys.c,file.h:
  170.     Added a new command to mint.cnf, "alias", to
  171.     enable aliases for pseudo (and other) drives
  172.     to be created. Also, deleted drives q:, v:, and
  173.     x:. Programs should no longer be using these;
  174.     if they are, users can put things like
  175.     "alias q: u:\pipe" into mint.cnf.
  176. file.h:
  177.     Fixed the definitions for TCURSON and TCURSOFF.
  178. console.c:
  179.     Moved the handle checks in file_* functions into
  180.     separate functions, since for example we *know*
  181.     that handle 0 falls within the legal range; this
  182.     should remove a bit of overhead on BIOS and
  183.     single character GEMDOS I/O.
  184. main.c:
  185.     Got rid of the zeroexit() code; since we now
  186.     allow the whole boot process to be aborted by
  187.     right shift.
  188. pipefs.c:
  189.     Allow Cursconf() to work on TOSWIN pipes.
  190. mem.c:
  191.     Check the date and time of shared text regions
  192.     before re-using them.
  193. bios.c,syscall.s:
  194.     Changed the trap #13 entry point to allow quick
  195.     evaluation of BIOS functions that don't need
  196.     the full context save/restore done.
  197. everywhere:
  198.     Macro-ize TRACE and DEBUG so that it's possible
  199.     to produce a smaller version of MiNT without
  200.     them.
  201. biosfs.c:
  202.     Don't check for keyboard presses after every
  203.     BIOS write, it's too time consuming.
  204.  
  205. PATCHLEVEL 5::
  206.  
  207. mem.c:
  208.     Another bug: we shouldn't do the dLibs Pexec
  209.     hack on the first process we start up, because
  210.     it means messing with the MiNT basepage (which
  211.     is not ours to mess with, it's TOS's).
  212. main.c:
  213.     Fixed bug in enter_kernel (rootproc->base is no
  214.     longer necessarily MiNT's basepage).
  215. various places:
  216.     Tried to remove gcc warnings about constant
  217.     expression overflow.
  218. syscall.s:
  219.     Applied Alex's patch to allow trace mode to work
  220.     with non-MiNT debuggers.
  221. various places:
  222.     Applied Alex's patches to get rid of Lattice warnings
  223.     about unneeded assignments.
  224. mem.c:
  225.     Added extra traces to exec_region() in an effort to
  226.     track down the mysterious crash problems that others
  227.     have had.
  228.  
  229. PATCHLEVEL 4::
  230.  
  231. dosmem.c:
  232.     Made do_vfork not bother to save shared text regions.
  233. bios.c:
  234.     Made Rwabs respect Dlock.
  235. tosfs.c:
  236.     Made the TOS media change routines lazier (actual
  237.     disk access is deferred until the disk is next
  238.     needed).
  239. main.c:
  240.     Applied Alex's patches for setenv.
  241. everywhere:
  242.     Applied Julian's patches for Pure/Turbo C. The
  243.     resulting kernel doesn't actually work yet, but
  244.     at least we don't get so many error messages when
  245.     compiling. (Who needs lint when you have three
  246.     fussy ANSI compilers?)
  247. mint.h:
  248.     Oops; we should have had #include "inline.h" here.
  249. inline.h:
  250.     Applied jrb's GCC patches, and Alex's Lattice patches.
  251.  
  252. PATCHLEVEL 3::
  253.  
  254. bios.c:
  255.     Some optimizations in bflush(). I tried something like
  256.     this before, but messed up the terminal output modes.
  257.     Let's hope I got it right this time. Also:
  258.     removed some dependencies on sizeof(int).
  259. makefile:
  260.     Tried -O2 instead of -O. It seems to work, so let's
  261.     leave it on for now.
  262. inline.h:
  263.     New file to keep short, inlined versions of frequently
  264.     called functions.
  265. intr.s:
  266.     Check the floppy disk locking flag before doing a
  267.     pre-emption. Not really necessary now, but it doesn't
  268.     hurt to be careful.
  269. dosfile.c,*fs.c:
  270.     Applied Alex's F_SETLKW patches. If Alex isn't careful,
  271.     he's going to make MiNT Posix compliant on us :-).
  272. dosmem.c:
  273.     Applied Alex's patches to add a Pwaitpid system call.
  274. main.c:
  275.     If running from the AUTO folder, adjust the basepage
  276.     chains so that MiNT is invisible to programs that
  277.     (incorrectly!) make assumptions about basepages.
  278. proc.c:
  279.     Some optimizations in do_wakeup.
  280. filesys.c:
  281.     Don't call (*fs->dskchng)() twice when a disk
  282.     change is detected.
  283. main.c:
  284.     Make sure the _resvalid system variable has the
  285.     correct magic number in it for indicating that
  286.     we want to catch the reset.
  287.  
  288. PATCHLEVEL 2::
  289.  
  290. dosdir.c:
  291.     Really forbid deleting other process' current
  292.     directories (the actual "return EACCDN" was missing!)
  293. proc.c:
  294.     Inlined the check_time() function, and re-arranged
  295.     do_wakeup_things a bit to be more efficient.
  296. syscall.s:
  297.     Streamlined a bit; things are now kept in registers
  298.     where possible.
  299. filesys.c:
  300.     When loading file systems at startup time, don't
  301.     check the \MINT directory if that's the current one.
  302. filesys.c:
  303.     After a media change, instead of throwing away all
  304.     handles that pointed to the changed drive, make
  305.     them point to /dev/null instead, so that they
  306.     won't be re-used until the user explicitly closes
  307.     them.
  308. dosdir.c:
  309.     Allow Dlock() to succeed even if there is an
  310.     unfinished Fsfirst/Fsnext sequence on the drive.
  311. mem.c:
  312.     Allow relocations outside of the program load area;
  313.     apparently, some programs actually need these.
  314. mem.c:
  315.     Insert some sanity checks on memory addresses.
  316. signal.c:
  317.     Restart check_sigs if the process stopped because of
  318.     a signal, since the parent may reset the set of
  319.     pending signals.
  320. cpu.s:
  321.     New file from Alex, to control caching &c.
  322. various places:
  323.     More debugging patches from Alex, to make attaching
  324.     to existing processes work correctly.
  325.  
  326. PATCHLEVEL 1::
  327.  
  328. various places:
  329.     Cleaned up the debugging stuff a bit. For example, if a
  330.     process does PTRACESFLAGS on itself, it's the same
  331.     as if the parent did; also, if the process does a
  332.     Pexec with overlay (i.e. Unix exec()) then it stops
  333.     before its first instruction. This makes emulating
  334.     the Unix ptrace() system call much easier.
  335.  
  336. PATCHLEVEL 0::
  337.  
  338. biosfs.c:
  339.     Changed Fcntl TIOCISPEED/TIOCOSPEED to return the
  340.     next lowest legal baud rate if an illegal one is
  341.     specified.
  342. filesys.c:
  343.     Fix a bug that would cause an infinite loop if a
  344.     bad .XFS format is encountered.
  345. mem.c,mem.h,dosmem.c:
  346.     Implemented shared text; if the appropriate bit
  347.     (for now, 0x800) in the program header is set, then
  348.     the loader will set up a shared text region for
  349.     the program, and subsequent executions of it will
  350.     run out of the same text segment. Note that this
  351.     does require appropriate compiler support!
  352. filesys.c:
  353.     Fixed bug in the way directory searches are closed
  354.     after a media change.
  355. biosfs.c,intr.s:
  356.     Applied Julian's third mouse button patch for
  357.     /dev/mouse.
  358. *.s:
  359.     Applied Alex's debugging patches. Also: wrote a
  360.     Motorola->MIT syntax converter, so that we only
  361.     have to maintain the stuff in the "asm" directory.
  362. signal.c,proc.h,procfs.c,etc.:
  363.     Applied Alex's debugging patches, with a few
  364.     slight modifications.
  365.  
  366. version 0.95
  367.  
  368. PATCHLEVEL14::
  369.  
  370.  
  371. filesys.c:
  372.     Check for the existence of the \MINT directory before
  373.     trying to load .XFS files from there.
  374.  
  375. --- patchlevel 13 released to the public ---
  376.  
  377. PATCHLEVEL13::
  378.  
  379. proto.h,filesys.c:
  380.     Added Alex's patches for Lattice.
  381.  
  382. PATCHLEVEL12::
  383.  
  384. dosdir.c:
  385.     Fsnext() on symbolic links was broken, because
  386.     relpath2cookie no longer checks drive letters
  387.     unless "depth" is > 0. Fixed this.
  388. main.c,filesys.c:
  389.     Added support for putting the mint.cnf file
  390.     and any *.XFS files into the directory \mint.
  391. dos.c:
  392.     Added Pgeteuid() and Pgetegid() system calls.
  393. main.c:
  394.     Fixed the "set current directory" code to
  395.     work properly.
  396. main.c:
  397.     Added a sanity check; if GEM is already running,
  398.     don't try to run it again.
  399. procfs.c:
  400.     Added FIONWRITE and FIONREAD ioctl calls.
  401. proc.c,bios.c:
  402.     Fixed the type of the critical error handler.
  403. dosfile.c,file.h,proc.c:
  404.     Added Alex's patches for O_APPEND and O_NOINHERIT.
  405. shmfs.c:
  406.     Fixed lseek() on shared memory segments, and added
  407.     FIONWRITE and FIONREAD ioctl calls.
  408. fasttext.c:
  409.     Tried once again to tame the wild cursor.
  410. dosmem.c,proc.c:
  411.     Modified process startup code so that PROC structures are no
  412.     longer kept forever by the kernel (which should help alleviate
  413.     memory fragmentation problems a bit).
  414.  
  415. PATCHLEVEL11::
  416.  
  417. dosmem.c:
  418.     Applied Alex Kiernan's SIGTRAP bug fix (and kicked myself for
  419.     forgetting C's precedence rules; thanks, Alex!).
  420. filesys.c:
  421.     Fixed relpath2cookie so that names like "C:\Z:" aren't
  422.     interpreted as referring to drive Z:.
  423. fasttext.c:
  424.     Restored the "turn on cursor when opening()" code, because
  425.     without it the fasttext driver and BIOS aren't in sync.
  426. main.c:
  427.     Moved the check for the presence of an already existing MiNT
  428.     cookie to earlier in the initialization process, so that
  429.     the error message can be printed properly.
  430. shmfs.c:
  431.     Fixed Dpathconf() on U:\SHM (filenames are truncated automatically
  432.     on that file system) and corrected the comment there.
  433. syscall.s:
  434.     New function, call_aes, used to check for the presence of GEM
  435.     (so we can tell whether or not we're running from the AUTO folder).
  436. main.c:
  437.     Run any programs which come after mint.prg in the AUTO
  438.     folder.
  439. version.h:
  440.     Changed so that the patchlevel is always printed on boot-up.
  441.  
  442. PATCHLEVEL10::
  443.  
  444. unifs.c:
  445.     Add U:\SHM as an interface for shared memory.
  446. shmfs.c:
  447.     New file system for doing shared memory.
  448. xbios.c:
  449.     Fixed Bconmap() to always return an error if the underlying
  450.     TOS doesn't support Bconmap.
  451. main.c:
  452.     Fixed a bug in the argument parsing code for the "exec"
  453.     command in mint.cnf.
  454. dosdir.c:
  455.     Changed Dlock() to return ELOCKED if an attempt is made to
  456.     lock a drive that's already locked, and ENSLOCK if an attempt
  457.     is made to remove a non-existent lock.
  458. version.h:
  459.     I forgot again to update this. Aargh!
  460.  
  461. PATCHLEVEL9::
  462.  
  463. mem.c,mem.h:
  464.     Align everything on 16 byte boundaries.
  465. mem.c,dosmem.c:
  466.     Actually fix the "memory being allocated twice" bug.
  467.     The problem was that setting m->links to 0 before calling
  468.     attach_region was a no-no.
  469.  
  470. PATCHLEVEL8::
  471.  
  472. mem.c:
  473.     Attempt to fix the strange "memory being allocated
  474.     twice" bug.
  475. tosfs.c:
  476.     Truncating names at 14 characters came *before* the
  477.     8.3 kludge, which meant that long names were being
  478.     interpreted incorrectly (e.g. gcc-cc1plus.ttp was
  479.     becoming "gcc-cc1p.tt"). Temporary kludge: only
  480.     truncate at 32 characters. Long term solution:
  481.     re-write this code to do the 8.3 truncation at the
  482.     same time as the truncation.
  483. main.c, proc.h:
  484.     Provide a more explicit type for criticerr.
  485. proc.c:
  486.     Don't make _logbase per-process if hardware scrolling
  487.     is active, since this makes for all kinds of weirdness!
  488. mem.c:
  489.     Allow NULL commandline to be the same as an empty
  490.     string. (It was acting this way before, due to the MiNT
  491.     library strncpy; now that we use our own strncpy some
  492.     programs were passing funny arguments.)
  493. dosmem.c:
  494.     Provide a more detailed trace of Pexec activity.
  495. mem.c:
  496.     Added a sanity check in get_region().
  497. proc.c:
  498.     Set the time/date stamp of process 0 to the
  499.     date & time when the system was booted.
  500. fasttext.c:
  501.     Commented out the code that turns the cursor
  502.     on when u:\dev\fasttext is opened.
  503. tty.c:
  504.     Unsigned characters are always >= 0, so we
  505.     don't need to check this.
  506.  
  507. PATCHLEVEL7::
  508.  
  509. makefile.lcc,mintlc.prj:
  510.     Added Alex's patches.
  511. assert.h:
  512.     Added Alex's patch to cast the result to void.
  513. filesys.c:
  514.     Make sure the file system media change routine
  515.     is called every time a disk change is forced;
  516.     this corrects the Dlock() bug (it wasn't forcing
  517.     media change as it should have).
  518. version.h:
  519.     Oops! I forgot to increment this for pl6, so
  520.     it jumps by 2 this time.
  521.  
  522. PATCHLEVEL6::
  523.  
  524. biosfs.c,pipefs.c,tty.c:
  525.     New Fcntl calls for controlling terminal baud
  526.     rates and flags such as parity and stop bits.
  527.     These have been integrated with the old TIOC*
  528.     calls where applicable.
  529. dosfile.c:
  530.     Changed Fcntl to make a call to tty_ioctl be the
  531.     default if the device is a terminal and the device
  532.     ioctl routine returns EINVFN.
  533. procfs.c, proc.c:
  534.     The date/time stamp of a process now shows when the
  535.     process was started, rather than being the number
  536.     of seconds of CPU time used.
  537. tosfs.c:
  538.     Degrade an ALERT to a TRACE; there is a circumstance
  539.     in which a root directory can apparently be changed,
  540.     and that's when a program tries to open an empty
  541.     file name. We don't need to warn the user that
  542.     something is wrong in this case; we can just fail
  543.     silently.
  544. proc.c:
  545.     Save the logical screen base for each process.
  546. main.c,bios.c,proc.h:
  547.     Made the critical error handler per-process.
  548. bios.c,syscall.s:
  549.     A cleaner way of saving registers when calling
  550.     functions... this wasn't really necessary, but I
  551.     did it to make tracking a bug down easier.
  552. tty.c:
  553.     New terminal flag, T_NOFLUSH, to suppress flushing of
  554.     input when SIGINT or SIGQUIT is received.
  555. *fs.c, file.h:
  556.     Added a new Dpathconf() option that tells whether or
  557.     not a file system is case sensitive.
  558. dos.c:
  559.     Forbid Prenice() on processes that you don't own.
  560. dosmem.c:
  561.     Correct a typo that was causing terminal process groups
  562.     to be incorrectly set.
  563.  
  564. PATCHLEVEL5::
  565.  
  566. makefile:
  567.     The -DOWN_LIB declaration should have been on (actually,
  568.     it was, in my copy... sorry for the mix-up).
  569. fasttext.c:
  570.     Applied Alex's patch for the disappearing cursor bug.
  571. everywhere:
  572.     Applied Alex's patches to add "const" declarations where
  573.     appropriate, and to get rid of size_t (since if OWN_LIB
  574.     is defined we use "int" instead).
  575. dosmem.c:
  576.     Fixed M_KEEP to attach memory to rootproc *only* at
  577.     process termination.
  578.  
  579.  
  580. PATCHLEVEL4::
  581.  
  582. proto.h:
  583.     Added prototype for do_func_key().
  584. everywhere:
  585.     Applied apratt's debugging/trace patches.
  586.  
  587. PATCHLEVEL3::
  588.  
  589. xbios.c, biosfs.c:
  590.     Change Bconmap to actually do the equivalent of an
  591.     Fforce(-2, foo) call; this way, we don't need the
  592.     ugly DFLTMODM kludge. (On the other hand, we introduce
  593.     some new ugly kludges :-)).
  594. main.c,proc.c:
  595.     Wait until everything is initialized before opening
  596.     devices; this avoids bogus critical error messages from
  597.     AHDI.
  598. util.c, mint.h, ctype.h:
  599.     Add all sorts of utility routines (for string processing,
  600.     character type recognition, and the like). This is
  601.     designed to make sure that MiNT works the same regardless
  602.     of what library is used to compile it. We're not quite
  603.     totally independent of library yet (the startup code and
  604.     <osbind.h> aren't replaced) but we're pretty close.
  605. main.c, proc.c:
  606.     Initialize the current directory for the root
  607.     process *after* file systems have been loaded, since
  608.     otherwise the info is nuked when a new fs is loaded in.
  609. bios.c:
  610.     Allow output to BIOS device 5 to be redirected along
  611.     with BIOS device 2; we do this by using the MW
  612.     ESC-Q control sequence to quote characters. A bit of
  613.     a hack, but then, not many people use device 5.
  614. quickmov.s:
  615.     Fixed two bugs in quickmove: (1) it didn't work for
  616.     regions bigger than 0x00fffe00 bytes in length,
  617.     and (2) it assumed the length was a multiple of 4
  618.     bytes.
  619. fasttext.c:
  620.     Re-arrange things a bit to get rid of a gcc 2.1 warning.
  621. dosmem.c:
  622.     Change flag 0x4000 to mean "don't free the memory
  623.     automatically on process termination"; explicit
  624.     Mfree requests are still allowed, and after
  625.     termination *any* process may Mfree the memory.
  626.  
  627. PATCHLEVEL2::
  628.  
  629. makefile:
  630.     Remove -fcombine-regs from CFLAGS, since gcc 2.1
  631.     doesn't understand it.
  632. bios.c:
  633.     Ignore value returned by Bconout for the screen
  634.     (many text accelerators get this wrong :-( ).
  635. dossig.c, signal.h:
  636.     New system call, Psigaction(), by AGK. 
  637. xbios.c:
  638.     Added support for Bconmap.
  639. bios.c, biosfs.c:
  640.     Rationalized the way biosfs and bios interact;
  641.     no more funny device numbers are needed. Also:
  642.     added support for Bconmap, and a new default
  643.     modem device.
  644. pipefs.c:
  645.     Applied Michael Hohmuth's patch for pipe_close (thanks,
  646.     Michael!)
  647. filesys.c:
  648.     Don't try to initialize all the drives at boot time; path2cookie
  649.     is quite capable of initializing, and it saves having
  650.     to access drive B: (for example) while booting is going
  651.     on.
  652. main.c:
  653.     Allow the user to avoid booting MiNT if the right shift key
  654.     is held down.
  655. main.c:
  656.     Added safety checking, as suggested by AKP.
  657. dosmem.c:
  658.     In Mxalloc, if (mode & 0x4000) is nonzero then allocate non-freeable
  659.     memory (we do this by attaching the memory to the root process).
  660. fasttext.c:
  661.     Tabs should be non-destructive on the ST!
  662. proc.h:
  663.     Re-arranged some things. Note that "slices" was never supposed
  664.     to be visible to users! Also, added a "bconmap" variable to
  665.     give the current Bconmap mapping for the process.
  666. dosdir.c:
  667.     Fail Ddelete of current directories only on the current
  668.     drive; for other drives, reset the current directory
  669.     to the root directory. NOTE: Ddelete of a current directory
  670.     is forbidden only if the directory is someone else's
  671.     current directory; if it's only your current dir., you
  672.     can delete it (and get automatically bumped back to
  673.     root).
  674.  
  675. PATCHLEVEL1::
  676.  
  677. dosmem.c:
  678.     Fixed a bug that caused processes with no '.' in their names
  679.     to have the wrong process name.
  680. dosmem.c:
  681.     In Pexec, make sure we yield to the new process so that
  682.     it gets at least one timeslice to do an Mshrink().
  683. proc.c:
  684.     In preempt(), don't punish processes that have buffered
  685.     BIOS output and are preempted; the process of flushing the
  686.     buffer may very well put them to sleep, and in any event
  687.     processes doing I/O should not be considered "hogs".
  688. tosfs.c:
  689.     Don't look for volume labels in opendir/readdir/lookup etc.
  690. main.c:
  691.     AGK: added DEBUG_LEVEL and DEBUG_DEVNO options to mint.cnf.
  692. dossig.c:
  693.     New system call (Psigpause()) courtesy of Alex Kiernan.
  694. dosmem.c:
  695.     In Pexec(200,...), don't reset base->p_parent, since the
  696.     "parent" in an overlay exec is oneself.
  697. tty.c:
  698.     Fixed so that RAW mode reads will return all of an
  699.     extended escape sequence at once, rather than waiting
  700.     for the next read.
  701. dosmem.c:
  702.     When terminating a process, make sure that it's "number of
  703.     memory regions" is set to 0; otherwise, calls to memused()
  704.     on the process (e.g. by procfs) can crash the system.
  705. dosdir.c:
  706.     When removing directories, make sure that the directory
  707.     isn't in use as someone's current directory (so that
  708.     they don't get left in limbo).
  709. fasttext.c:
  710.     Screen memory must come from ST RAM -- otherwise hardware
  711.     scrolling crashes and burns. Fixed thanks to AGK.
  712. xbios.c:
  713.     Moved the prototype for midiws to proto.h, and corrected the
  714.     type of its argument (it should have been "int", not "short").
  715.  
  716. PATCHLEVEL0::
  717.  
  718. bios.c:
  719.     Terminal modes weren't being set correctly in Bconout, and also
  720.     weren't being set in bflush (which should have employed RAW
  721.     mode output, but didn't).
  722. everywhere:
  723.     Merged in Alex Kiernan's latest Lattice C patches.
  724.  
  725.  
  726. version 0.94
  727.  
  728. PATCHLEVEL4::
  729.  
  730. filesys.c:
  731.     Use U:\DEV\CON for CON:, instead of V:\CON, since we're
  732.     going to make drive V: go away soon.
  733. unifs.c:
  734.     When looking up a drive, make sure that it has a valid file
  735.     system attached to it -- otherwise, newly installed ramdisks
  736.     can cause system crashes :-(.
  737. fasttext.c:
  738.     Patches to make the fast text device work correctly on a TT,
  739.     courtesy of Erling Henanger.
  740. main.c:
  741.     Install 16 extra cookies, instead of 8, just to be friendly.
  742.  
  743. PATCHLEVEL3::
  744.  
  745. main.c:
  746.     Allow PSEUDODRIVES=MAP to put the extra drives in
  747.     _drvbits without installing new drivers for them.
  748. unifs.c:
  749.     Don't rely on drvmap() to figure out what drives exist;
  750.     it isn't accurate if PSEUDODRIVES=NO.
  751.  
  752. PATCHLEVEL2::
  753.  
  754. main.c:
  755.     Added an option for turning off the BIOS routines for the
  756.     pseudo-drives.
  757. filesys.c:
  758.     Moved the vector set/restore code to main.c (where all the
  759.     other vector stuff is).
  760. tosfs.c:
  761.     If the _FLK cookie was already set when MiNT started, we
  762.     pass file sharing and locking requests through to GEMDOS.
  763. main.c:
  764.     Turn the cursor off when leaving, if we were started from
  765.     the desktop.
  766. tosfs.c:
  767.     Fixed a bug in which tos_chmode was returning an incorrect
  768.     value.
  769. debug.c:
  770.     Added code for octal output to sprintf().
  771. dosdir.c:
  772.     Make Fsfirst() with the FA_LABEL bit set work on non-TOS
  773.     file systems (via the file system readlabel function).
  774.     (This used to work only when the search was restricted to
  775.     labels only.)
  776. various places:
  777.     Get rid of gcc 2.0 warnings.
  778.  
  779. PATCHLEVEL1::
  780.  
  781. file.h:
  782.     Because Fmidipipe and the disk change code can close
  783.     files other than the files of the current process,
  784.     the device driver "close" function needs another
  785.     parameter, namely the process id being closed; this
  786.     allows device drivers to remove locks properly.
  787. tosfs.c:
  788.     Volume labels shouldn't be found by Dreaddir().
  789. tosfs.c:
  790.     Added file locking.
  791. filesys.c, main.c, file.h:
  792.     New utility routine (denylock) to make implementing file
  793.     locking easier for file systems.
  794.  
  795. PATCHLEVEL0::
  796.  
  797. tosfs.c:
  798.     Canonicalize file names (i.e. convert to 8.3 format).
  799.     Also, keep track of the value returned from the last
  800.     readdir() call, so that a subsequent Fxattr() will take
  801.     place quickly.
  802. proc.c:
  803.     In sleep(), make sure interrupts are disabled while queue
  804.     manipulations are occuring.
  805. bios.c:
  806.     Correct a stuttering problem for ^C and similar interrupts.
  807. dosmem.c:
  808.     8 character process names weren't terminated properly.
  809. tty.c:
  810.     Aaargh! Shift+cursor keys were being interpreted even when
  811.     they shouldn't have been.
  812.  
  813. version 0.93
  814.  
  815. PATCHLEVEL6::
  816.  
  817. filesys.c:
  818.     Check for newly installed drives when parsing an
  819.     absolute path without an explicit drive letter, as
  820.     well as when looking at ones with drive letters.
  821.  
  822. PATCHLEVEL5::
  823.  
  824. biosfs.c, fasttext.c:
  825.     Allow TIOCGWINSZ calls on the console (we use the line A
  826.     variables to get the number or rows and columns).
  827. filesys.c:
  828.     Fix a typo in the file system initialization checking.
  829. pipefs.c:
  830.     Make "VIRGIN_PIPE" more obviously a magic value, and
  831.     document it.
  832. pipefs.c:
  833.     Make u:\pipe have a sensible date/time; also, make
  834.     Dfree on u:\pipe return some useful statistics about
  835.     the number of pipes in the system.
  836. procfs.c:
  837.     u:\proc has a sensible time and date now, namely the
  838.     time/date of the last process creation or destruction.
  839. dosfile.c:
  840.     Fcreate() of a volume label now returns a handle to
  841.     u:\dev\null.
  842. dosmem.c:
  843.     Make sure the BIOSBUF buffer is flushed when terminating.
  844. main.c:
  845.     There's a bug in TOS 1.4: GEM seems to assume that all
  846.     memory is zero initially, and if it isn't (e.g. if a large
  847.     AUTO folder program like MiNT terminates and leaves behind
  848.     dirty memory) then having too many (or the wrong kind of)
  849.     desk accessories can lead to a crash. This was a real bear
  850.     to track down, and the work-around is very ugly; before
  851.     MiNT exits we copy a short machine language subroutine into
  852.     the command line, and then execute it; the routine zeros
  853.     all of the TPA and then does a Pterm0().
  854. rendez.c:
  855.     Change a "short" to "int" for the benefit of gcc 2.0.
  856. bios.c:
  857.     Stop process dumps from stuttering.
  858. console.c:
  859.     Added support for global file handles.
  860.  
  861. PATCHLEVEL4::
  862.  
  863. dosfile.c:
  864.     In Fselect(), we have to re-validate file handles after
  865.     a sleep() call, since signal handlers may close files.
  866. proc.c:
  867.     Pre-allocate more PROC structures (this should help
  868.     reduce memory fragmentation).
  869. tty.c, file.h:
  870.     Allow cursor/function keys to send escape sequences.
  871. dosdir.c:
  872.     As suggested by S. Henson: Dsetpath through a symbolic link
  873.     may also require changing the current drive as well.
  874. proc.c,dos.c,timeout.c:
  875.     New process scheduling algorithm, as suggested by A. Pratt.
  876. dosdir.c:
  877.     Make only the low bit of Dlock() significant, for future
  878.     expansion.
  879. dosfile.c:
  880.     Allow Fcreate() to create a global file handle.
  881.  
  882. PATCHLEVEL3::
  883.  
  884. debug.c:
  885.     Changed TRACE mode output so that not just any keys will
  886.     start/stop output, but only Help and Undo.
  887. dosdir.c, filesys.c:
  888.     Add a Dlock() system call to lock/unlock drives.
  889. filesys.c:
  890.     Only initialize drives if the BIOS drive map says that
  891.     they exist.
  892. dosmem.c:
  893.     In Pexec, make a copy of any name we're going to use
  894.     before freeing memory for overlayed programs; the old
  895.     way was decidedly incorrect!
  896. dosfile.c:
  897.     Allow for global file handles, so that shared libraries
  898.     can use file handles that are the same for all processes.
  899. dosmem.c:
  900.     In Mxalloc, ignore bits that we don't understand, to
  901.     allow for future expansion.
  902. syscall.s:
  903.     Fix a bug that could cause the wrong system call to be
  904.     made if BIOS buffering is on (!).
  905. bios.c:
  906.     Streamline the BIOS buffering mechanism, and make it
  907.     more conservative about multiple processes doing Bconout
  908.     output.
  909. procfs.c:
  910.     Allow "foo.-1" to stand for the current process, and
  911.     "foo.-2" to stand for our parent. Also, add new
  912.     Fcntls for getting/setting memory flags.
  913. bios.c:
  914.     In Setexc(), don't actually change any vectors, let the BIOS
  915.     do it -- some TSR's install trap handlers that look for
  916.     certain Setexc functions...
  917. signal.c:
  918.     Allow nested Supexec() calls, or Supexec()'s from a terminate
  919.     vector.
  920. procfs.c:
  921.     Change the definition of PPROCADDR and add a new Fcntl,
  922.     PCTXTSIZE.
  923. mem.c:
  924.     In exec_region, set the stack based on the value of p_hitpa
  925.     from the basepage, instead of the size of the memory
  926.     region -- some programs rely on being able to set the initial
  927.     stack pointer for a Pexec(4,...) this way.
  928. main.c, context.s:
  929.     Avoid using 68020 instructions if we're on a 68010.
  930.  
  931. PATCHLEVEL2::
  932.  
  933. dos.c,proc.c:
  934.     More tweaking of the priority code.
  935. main.c:
  936.     Change the type of "tosbp" from char ** to BASEPAGE **,
  937.     since that's what it really is.
  938. main.c:
  939.     Add a special case for the Spanish TOS 1.0 act_pd variable.
  940. pipefs.c:
  941.     When a writer is waiting to write a small amount of data
  942.     atomically, remember to wake up readers so that they
  943.     can clear the pipe!
  944. debug.c:
  945.     Add the %u flag to ksprintf() (Fselect uses it, maybe others
  946.     do too...)
  947. dosmem.c:
  948.     In Pterm(), put the exit code onto the stack when calling
  949.     etv_term. It won't be in the same place as it was for TOS,
  950.     but c'est la vie. (People asked for this feature...)
  951. xbios.c:
  952.     Provide a way to pass arguments to Supexec(). Note that Atari
  953.     never documented that this was possible, but some people were
  954.     relying on it anyway :-(. (Don't use this feature, it's only
  955.     there as a compatibility hack.)
  956. main.c:
  957.     In shutdown(), don't bother waiting a second for processes
  958.     to finish if there are no other processes.
  959. filesys.c:
  960.     Make sure that path names are null terminated after strncpy.
  961. mem.c:
  962.     Fix the code to zero process registers so that it *only* zeros
  963.     process registers.
  964. dosmem.c:
  965.     Eliminate some redundant code.
  966. dosfile.c:
  967.     Open u:\pipe\sys$pipe.xxx rather than q:\sys$pipe.xxx.
  968. main.c:
  969.     Change a "malloc" into "kmalloc", and restore the #include
  970.     of <minimal.h> that was inadvertently deleted.
  971. main.c:
  972.     Allow parameters to be passed to the initial program specified
  973.     by the INIT= string.
  974.  
  975. PATCHLEVEL1::
  976.  
  977. main.c:
  978.     Fix a typo in shutdown() that was causing problems when
  979.     MiNT was shut down while processes were active.
  980. tosfs.c:
  981.     Make sure that tfullpath() returns a string less than
  982.     PATH_MAX characters long.
  983. everywhere:
  984.     Replace "sprintf" with "ksprintf".
  985. debug.c:
  986.     Add a "ksprintf" function that's like sprintf(), but
  987.     (a) doesn't have so many features (making it smaller),
  988.     and more importantly (b) won't try to write more than
  989.     SPRINTF_MAX characters into a buffer.
  990. filesys.c:
  991.     In path2cookie, make sure we don't try to copy more than
  992.     PATH_MAX characters into the fixed size buffers.
  993. dosmem.c:
  994.     The "sleep if no memory available during Malloc" code
  995.     was causing more problems than it solved, so it was
  996.     removed. To compensate, we increase the priority of
  997.     newly Pexec'd processes to make sure that they get
  998.     to run.
  999. dosmem.c:
  1000.     Aaaargh! A very serious screw-up in terminate() was
  1001.     causing us to wake up processes sleeping in vfork()
  1002.     even when their children were still using the address
  1003.     space; needless to say, horrible (and mysterious)
  1004.     crashes could ensue. Fix: only force the parent awake
  1005.     if wait_q == WAIT_Q && wait_cond matches the terminating
  1006.     process, otherwise let post_sig() handle waking.
  1007.     While fixing this bug, re-arrange the terminate code
  1008.     to do the waking up at the very end, just in case some
  1009.     of the other code may cause a sleep() temporarily.
  1010. bios.c:
  1011.     Fix the scan code for the UNDO key.
  1012. fasttext.c:
  1013.     Use Setscreen() to set the hardware screen base, since setting
  1014.     the variable at 0x45e causes TOS to keep setting the screen base
  1015.     ad infinitum.
  1016.  
  1017. PATCHLEVEL0::
  1018.  
  1019. rendez.c:
  1020.     When waking a process up from a semaphore, check to see
  1021.     if it's on the WAIT_Q before trying to remove it from
  1022.     that queue (it might have been moved off the wait queue
  1023.     by a signal).
  1024. bios.c:
  1025.     Make sure that Bconout(2,c) always succeeds, to compensate
  1026.     for text accelerators and other programs that don't return
  1027.     sensible values from Bconout. Also, ignore the Bconout
  1028.     return value when flushing the text output buffer.
  1029.  
  1030. version 0.92
  1031.  
  1032. PATCHLEVEL4::
  1033.  
  1034. biosfs.c:
  1035.     Provide devices for the extra Mega STe serial ports.
  1036. biosfs.c:
  1037.     Make the kernel info structure available to device drivers
  1038.     loaded with Dcntl.
  1039. xbios.c:
  1040.     Provide a modified Midiws function so that this is also
  1041.     affected by Fmidipipe and Fforce.
  1042. biosfs.c:
  1043.     Split bios_device into two device drivers; one for
  1044.     terminal devices, and one for plain character devices
  1045.     (the printer and IKBD port fall into this category).
  1046.     Also: provide a new Dcntl call to install plain BIOS
  1047.     devices in U:\DEV.
  1048. tty.c:
  1049.     Check for terminal start/stop keys while reading.
  1050. bios.c:
  1051.     In checkkeys, loop through all keys received since our last
  1052.     interrupt, rather than just checking the last thing in the
  1053.     buffer (as A. Pratt suggested).
  1054. bios.c, tty.c:
  1055.     Made the "disable" character for special terminal functions
  1056.     (e.g. the EOF key) be 0 instead of -1; this matches System V,
  1057.     is more POSIX friendly, and also makes confusing function keys
  1058.     and ^@ less likely. (Thanks to Scott Willingham for this
  1059.     suggestion.)
  1060. file.h, elsewhere as needed:
  1061.     Renamed the O_BIOS flag O_TTY (since that's what it really
  1062.     represents) and renamed the is_bios macro is_terminal.
  1063. dosmem.c:
  1064.     Make Pexec mode 106 cause the child to be truly independent
  1065.     of the parent (i.e. it doesn't get the parent's address space,
  1066.     nor does the parent get the child's).
  1067. biosfs.c:
  1068.     Allow symbolic links from U:\DEV; this lets us do things like
  1069.     Fsymlink("U:\PIPE\SERVERFIFO", "U:\DEV\SERVERDEV").
  1070. main.c:
  1071.     When PRN=d:\foo is specified, create the file foo instead of
  1072.     just trying to open it; this makes no difference to devices,
  1073.     but makes redirecting printer output to a file much more
  1074.     convenient.
  1075. unifs.c:
  1076.     Fix a bug that was causing Dgetpath() to return incorrect
  1077.     information for U:\A.
  1078. timeout.c:
  1079.     Make sure "searchtime" is up-to-date; bconout uses this for
  1080.     the time out.
  1081. biosfs.c:
  1082.     Fix bios_write so that if bconout fails, so does the write.
  1083. bios.c:
  1084.     Fix bconout so that it doesn't hang forever if the device isn't
  1085.     going to be ready (e.g. the printer is off); instead, there's
  1086.     a 10 second timeout.
  1087. main.c:
  1088.     Send all processes SIGTERM when we're shutting down, so that
  1089.     they have a chance to clean up after themselves.
  1090. mint.h:
  1091.     The KBDVEC structure was missing the "clockvec" element (!).
  1092.  
  1093. PATCHLEVEL3::
  1094.  
  1095. biosfs.c:
  1096.     Revised to allow support for loading/removing device drivers
  1097.     dynamically, via a Dcntl() call.
  1098. dosmem.c,mem.c,dosfile.c,file.h:
  1099.     Added support for setuid/setgid. These bits are only checked
  1100.     in Pexec modes 0, 100, and 200, i.e. the "load and go" modes.
  1101. rendez.c:
  1102.     Added new semaphore code from Allan Pratt.
  1103. main.c:
  1104.     New command for mint.cnf: "exec foo.prg bar" runs the program
  1105.     "foo" with argument(s) "bar".
  1106. main.c:
  1107.     Use the XBRA protocol for all interrupt routines that we grab.
  1108. filesys.c:
  1109.     When terminating MiNT, close all open files to make sure data
  1110.     is flushed and devices are nicely shut down.
  1111. main.c:
  1112.     Add some more variables, such as CON and PRN for redirecting
  1113.     those handles, and HARDSCROLL for controlling the fast text
  1114.     output.
  1115. proc.c:
  1116.     Make sure the "links" field for the prn and aux handles is
  1117.     correct.
  1118. syscall.s, bios.c:
  1119.     Special case the BIOS Bconout code to try to speed it up
  1120.     a bit. We allow for buffering of Bconout output; the buffer
  1121.     is flushed on the next non-Bconout system call or context
  1122.     switch. This should usually work OK, but as a precaution
  1123.     we provide for a way to turn it off (BIOSBUF=NO in mint.cnf).
  1124. fasttext.c.fasttext.h:
  1125.     New files for a faster text output device; changes were
  1126.     made to biosfs.c to support this, too.
  1127. tty.c:
  1128.     Streamline writes to terminals by sending data to the
  1129.     tty device in chunks instead of 1 character at a time.
  1130. dosfile.c:
  1131.     In do_open, always return EFILNF, never EPTHNF.
  1132. dosmem.c:
  1133.     Use supexec() to execute the terminate vector code, to
  1134.     avoid duplication of signal 0 faking.
  1135. xbios.c:
  1136.     In Supexec() does leave the kernel, so we have to make
  1137.     appropriate adjustments. We do this by faking a signal
  1138.     (signal 0) and installing the user's function as a signal
  1139.     handler.
  1140. dosdir.c:
  1141.     Make Dfree(x) actually look at free space on the drive which
  1142.     corresponds to the current directory on <x>; this should make
  1143.     Dfree on drive U: much more useful.
  1144. proc.h:
  1145.     Make the "base" field of the PROC structure have type BASEPAGE *
  1146.     (since that's what it is!)
  1147. basepage.h, dosdir.c, dosmem.c:
  1148.     Support some undocumented fields in the basepage a little bit
  1149.     (i.e. they're read only). Programs that try to write to these
  1150.     fields break. Surprise, surprise.
  1151.  
  1152. PATCHLEVEL2::
  1153.  
  1154. dosmem.c, mem.c:
  1155.     The docs say that children started with Pexec(104,...) or
  1156.     Pexec(106,...) share the parent's memory. This was unfortunately
  1157.     not the case; if the parent exited and the child was running
  1158.     in the parent's address space (e.g. see tfork() in mntlib)
  1159.     the child died very soon thereafter (like when the next program
  1160.     comes along and clears the memory the child was running out of).
  1161.     This is now fixed.
  1162. dos.c, proc.c, timeout.c:
  1163.     More tuning of the process scheduler.
  1164. main.c:
  1165.     Added "setenv" function for mint.cnf.
  1166.  
  1167. PATCHLEVEL1::
  1168.  
  1169. filesys.c:
  1170.     In some circumstances, AHDI will keep telling us that a drive
  1171.     has changed, ad infinitum. To avoid this, we stop trying after
  1172.     8 media changes occur in a row.
  1173. util.c:
  1174.     Tuned the kmalloc() strategy to reduce memory fragmentation
  1175.     (every process will be allocating 264 bytes for its
  1176.     memory region maps right after creation, and this should
  1177.     come from kernel memory).
  1178. tty.c:
  1179.     Under TOS, 1 byte writes should always be in raw mode.
  1180. dos.c:
  1181.     In Syield(), we should call sleep() even if no other processes
  1182.     are waiting, just to make sure that signals, alarms, etc.
  1183.     are properly dealt with.
  1184. filesys.c, dosfile.c:
  1185.     The media change code was wedged (actually, the fault was in
  1186.     do_pclose, which sometimes neglected to check to see whether
  1187.     or not the file had a still-valid device driver).
  1188. dosmem.c:
  1189.     In the termination code, close "files" referring to a process
  1190.     *before* freeing all the process memory; that way, we don't
  1191.     have to worry in do_pclose() and other places about what
  1192.     kind of state the process is in.
  1193. mem.h:
  1194.     Round off memory regions only to a word boundary for better
  1195.     TOS compatibility.
  1196.  
  1197. PATCHLEVEL0::
  1198. dos.c,intr.s,syscall.s:
  1199.     Changed s_yield() to actually give up the processor if
  1200.     another process is waiting for it; this means that processes
  1201.     that call Syield() won't be penalized by the priority code.
  1202.     Also: added a new kernel function, preempt(), which does
  1203.     what the old s_yield() did (and hence penalizes CPU hogs).
  1204. makefile:
  1205.     Cleaned up a bit, per suggestions from A. Pratt and D. Gymer.
  1206.  
  1207.  
  1208. version 0.91
  1209.  
  1210. dosmem.c:
  1211.     Only the high 4 bits of the program load flags give memory
  1212.     requirements (we were using 8 bits).
  1213. dosdir.c:
  1214.     Add a hack so that ksh still works (it was using '/' in a
  1215.     path name). THIS HACK WILL GO AWAY SOMEDAY!
  1216. tty.c:
  1217.     CBREAK mode shouldn't do erase, kill, or EOF processing.
  1218. dosdir.c:
  1219.     Freadlink should check first to make sure the file really
  1220.     is a link!
  1221. file.h,tty.c:
  1222.     Change the name "struct winsiz" to "struct winsize" to match
  1223.     what Unix calls it (cosmetic change only).
  1224. unifs.c:
  1225.     Allow renaming of the drives, and allow rmdir() to work
  1226.     like unlink() for symbolic links (since we fake the return
  1227.     value from Fsfirst to look like a directory if the link
  1228.     points to a directory).
  1229. biosfs.c:
  1230.     lseek() on the null device should not return 0 always;
  1231.     otherwise, it will look like a terminal to many programs!
  1232. dosfile.c:
  1233.     If a MiNT domain process closes stdin or stdout, they
  1234.     really do want them closed (for compatibility with
  1235.     MiNT 0.8).
  1236. syscall.s:
  1237.     When returning from traps, don't pre-empt the current process
  1238.     if it's in supervisor mode.
  1239. mem.c:
  1240.     Fake some stuff in the basepage so that programs compiled
  1241.     with dLibs will work some of the time.
  1242. tosfs.c:
  1243.     Make the value returned from Dgetpath() lower case in the MiNT
  1244.     domain. Also, make tosfs a little less verbose when debugging
  1245.     or tracing is on.
  1246. dosmem.c:
  1247.     Try to allocate space for saved fork() memory in the alternate (TT)
  1248.     memory map first, as well as in core (ST) memory.
  1249. mem.h:
  1250.     Round allocation requests up to multiples of 8 bytes instead
  1251.     of 4; this automatically gives us a bit of slush for ill
  1252.     behaved programs, and also means that requests will always
  1253.     be for a multiple of sizeof(double) bytes.
  1254. util.c:
  1255.     Get rid of the extra slush around kmalloc'd regions (which
  1256.     was a lot bigger than originally intended anyway!)
  1257.  
  1258.  
  1259. version 0.9
  1260.  
  1261. PATCHLEVEL21:: released version
  1262.  
  1263. dosmem.c:
  1264.     Make Malloc and Mxalloc try again if there isn't enough memory;
  1265.     maybe the situation is temporary.
  1266. mem.c:
  1267.     Plug a memory leak in load_region(); also make load_region try again
  1268.     if there isn't enough memory to load the program (just in case the
  1269.     situation is temporary).
  1270. dosdir.c:
  1271.     Add a check to Fattrib to make sure that attributes of directories
  1272.     are never changed.
  1273.  
  1274. PATCHLEVEL20::
  1275.  
  1276. dosdir.c:
  1277.     Allow Frenames of processes and other special kinds of files even
  1278.     if they do have the FA_RDONLY bit set.
  1279. dosfile.c:
  1280.     Allow creation of files with the read-only attribute.
  1281. tosfs.c:
  1282.     Change the file deletion code so that an attempt to delete an
  1283.     open file no longer fails, but rather marks the file to be
  1284.     deleted when it is closed.
  1285. file.h:
  1286.     Add some extra space to the tty struct, for future expansion.
  1287. filesys.c,main.c:
  1288.     Make sure the fake BIOS disk routines are available before
  1289.     any of the pseudo-drives are used, by having them set up
  1290.     in init_filesys() instead of init_intr().
  1291. tosfs.c:
  1292.     Remove some debugging output that isn't needed anymore.
  1293.  
  1294. PATCHLEVEL19::
  1295. Beta release.
  1296.  
  1297. intr.s,main.c:
  1298.     provide some fake BIOS disk routines for the pseudo-drives,
  1299.     in hopes of avoiding "drive U: is not responding" types of
  1300.     messages that some have reported
  1301. pipefs.c:
  1302.     half.ttp was failing under mgr, because of a race condition:
  1303.     our select() returns "ready" for a pipe if nobody exists to
  1304.     write to it (since then a read will return immediately). half
  1305.     would make a pipe that would end up being destroyed immediately
  1306.     by mgr before it got attached to a process. Solution: pipes that
  1307.     have *never* been opened yet for writing get a special marker
  1308.     and select doesn't worry about them, only about ones that were
  1309.     once written to.
  1310. pipefs.c:
  1311.     Fixed FIONWRITE to return the correct value.
  1312. dosdir.c:
  1313.     Refuse to Frename a file with the FA_RDONLY attribute.
  1314. biosfs.c:
  1315.     Fixed bios_write to return the number of bytes successfully
  1316.     written.
  1317. bios.c:
  1318.     LAST_DEVICE was inaccurate. This could happen again, so I'm simply
  1319.     getting rid of it and leaving all errors to the BIOS.
  1320. pipefs.c:
  1321.     Make sure the FA_RDONLY attribute is sensible (i.e. unidirectional
  1322.     pipes that don't have a writer can still be written to).
  1323. filesys.c:
  1324.     Fixed relpath2cookie so that it doesn't *always* follow symlinks
  1325.     (it only should when lastname == follow_links)
  1326. dosfile.c:
  1327.     If the FA_RDONLY bit is set on the file, even the superuser should
  1328.     be denied access for writing.
  1329. dosfile.c:
  1330.     Requiring write permission for Fdatime is a Bad Idea, since GEMDOS
  1331.     doesn't; so now MiNT doesn't either.
  1332. tosfs.c, filesys.c:
  1333.     Fixed a bug with media changes (Fsfirst would sometimes try to close a
  1334.     directory that had already been automatically closed by a media change).
  1335.  
  1336. PATCHLEVEL18::
  1337.  
  1338. main.c:
  1339.     Fixed the machine type detection code; it needs to run before
  1340.     biosfs is initialized, i.e. before init_filesys().
  1341. main.c:
  1342.     Provide a configuration file so that users can automatically
  1343.     setup symbolic links and can change their init program.
  1344. biosfs.c:
  1345.     Allow rename on bios devices, so people who want terminals called
  1346.     "ttyX" instead of "modemX" can do so.
  1347. dosdir.c:
  1348.     Flink shouldn't need write permission on the destination
  1349.     directory, only the source.
  1350. dosfile.c:
  1351.     Added FSTAT function for Fcntl, to allow a better version of
  1352.     fstat() for the library.
  1353. dosfile.c:
  1354.     Add code to fcntl to automatically convert MiNT 0.8 O_NDELAY
  1355.     into MiNT 0.9 O_NDELAY. This is a temporary measure only,
  1356.     to let older versions of mgr continue to work for a while.
  1357. filesys.c:
  1358.     Symbolic links with relative paths were always failing with
  1359.     ELOOP. Oops! (Thanks to Stephen Henson for catching this.)
  1360. file.h, tosfs.c, dosfile.c:
  1361.     Added a new flag, FS_NOXBIT, to control whether or not the
  1362.     file system has a sensible notion of execute permission.
  1363.     This removes an ugly check for &tos_filesys.
  1364. mint.h,util.c,mem.c:
  1365.     Added a compile time option, JUNK_MEM, to deliberately fill
  1366.     the memory MiNT acquires with garbage; this is for debugging
  1367.     (to help track down silly failures to initialize memory) and
  1368.     not for production code.
  1369. proc.c:
  1370.     Fixed a typo in init_proc() that was causing memory not to
  1371.     be initialized to 0 correctly. (Thanks are due to Stephen
  1372.     Usher for catching this one.)
  1373. tosfs.c:
  1374.     Added a tos_rewinddir that works.
  1375. file.h:
  1376.     Added blocks and blksize fields to the XATTR structure, and
  1377.     provided a few extra reserved fields for future expansion.
  1378.     (Also: re-arranged some fields to match what the gcc library
  1379.     already has.)
  1380. file.h, main.c:
  1381.     Add sleep, wake, and wakeselect to the kernel info structure;
  1382.     some device drivers will need these.
  1383. biosfs.c:
  1384.     Make nodskchng do a Getbpb on the (non-existent) device; the officially
  1385.     documented way of forcing a disk change requires this.
  1386. file.h,filesys.c,*fs.c:
  1387.     Remove the "flag" argument from the dskchng function, and
  1388.     have the kernel check Rwabs for E_CHNG; this should save
  1389.     a lot of duplication in user file systems, since everyone
  1390.     really has to do this anyways.
  1391. dosdir.c:
  1392.     Make sure that Fsfirst names can be null-terminated.
  1393. filesys.c:
  1394.     Oops: a misplaced bracket in disk_changed was causing
  1395.     write-protected disks to always appear to have changed!
  1396. tosfs.c:
  1397.     Made it illegal to delete or truncate an open file.
  1398.  
  1399. PATCHLEVEL17::
  1400.  
  1401. version.h:
  1402.     I think we can call this version an "alpha" one, now. No more
  1403.     major features remain to be added (fingers crossed, here).
  1404. filesys.c,dosdir.c,*fs.c,file.h:
  1405.     Media change detection code; this is now the kernel's
  1406.     responsibility. This necessitated an additional function
  1407.     for file systems; I hope this is the last one.
  1408. main.c,biosfs.c:
  1409.     Check what kind of machine we're on, and adjust what devices are
  1410.     present accordingly. The rs232 file has been renamed to "modem1".
  1411.     WARNING: This will break existing code that uses the name "rs232".
  1412. filesys.c:
  1413.     Code for loading file systems (finally!)
  1414. bios.c,context.s:
  1415.     Made Rwabs, Getbpb, and Mediach save registers (since device
  1416.     drivers often don't, and loadable file systems will be calling
  1417.     these directly).
  1418. main.c:
  1419.     Implemented the "struct kerinfo" to pass information to loadable
  1420.     file systems.
  1421. filesys.c:
  1422.     Re-wrote path2cookie to provide for symbolic links; a new routine
  1423.     (relpath2cookie) helps us out.
  1424. unifs.c:
  1425.     Code for creating, reading, and deleting symbolic links.
  1426. *fs.c, dosfile.c, file.h:
  1427.     Changed the way file opens and creates are done; the former
  1428.     (*getdev) routine for file systems has been split into
  1429.     (*creat) and (*getdev), both of which are quite a bit simpler.
  1430.     This whole scheme is clearer, less work for the file system,
  1431.     and will support symbolic links much better.
  1432. various places:
  1433.     Add security checks. This is still pretty sad, but at least it
  1434.     can provide one with a modicum of protection against silly
  1435.     mistakes.
  1436. dosfile.c:
  1437.     Require write permission on a file before changing its date via
  1438.     Fdatime.
  1439. tosfs.c:
  1440.     Cleaned up and streamlined a bit, and fixed tos_readlabel.
  1441. *fs.c,dosdir.c,file.h:
  1442.     Changed the file system "getxattr", "chmode", "chown", and
  1443.     "chattr" functions to take a single file cookie instead of a
  1444.     (directory, name) pair. This should make most uses of these
  1445.     functions (e.g. in name lookups) more efficient. Also,
  1446.     changed the readdir() function to return a file cookie to go
  1447.     along with the newly read file name.
  1448. main.c:
  1449.     If "init.prg" isn't found, try starting GEM instead.
  1450. unifs.c:
  1451.     Re-arranged to allow for symbolic links.
  1452. filesys.c:
  1453.     Implemented some media change routines.
  1454. dosdir.c:
  1455.     Added Fchown and Fchmod system calls.
  1456. dosdir.c:
  1457.     Added security check for Fattrib().
  1458.  
  1459. PATCHLEVEL16::
  1460.  
  1461. lots of places:
  1462.     Try to make TRACE() and DEBUG() messages more useful for people
  1463.     who don't know the internals of the kernel, and who just want to
  1464.     debug their own programs.
  1465. dosdir.c:
  1466.     Added Flink, Fsymlink, Freadlink, and Dcntl system calls.
  1467. *fs.c,file.h:
  1468.     Added a new mode to Dpathconf() to determine whether the
  1469.     file system uses DOS type file naming conventions, ordinary
  1470.     Unix type, or _POSIX_NO_TRUNC type.
  1471. file.h:
  1472.     Add an "fscntl" field to the file system structure.
  1473. tosfs.c:
  1474.     Fix the mode values returned from getxattr() (regular files
  1475.     have type S_IFREG, not S_IFMT).
  1476. proc.c:
  1477.     Zero the child's srchdta field after fork_proc(); otherwise,
  1478.     the accounting for Fsfirst/Fsnext can get messed up. Thanks
  1479.     again to S. Henson.
  1480. mem.c:
  1481.     As Steve Henson pointed out, resetting the effective user and
  1482.     group id's in exec_region is probably a Bad Idea.
  1483. dosdir.c:
  1484.     Change Dopendir/Dclosedir to use umalloc and ufree instead of
  1485.     kmalloc and kfree.
  1486.  
  1487. PATCHLEVEL15::
  1488.  
  1489. dosdir.c:
  1490.     When terminating, clean up after any Fsfirst/Fsnext sequences that
  1491.     didn't go to completion.
  1492. tosfs.c:
  1493.     Streamlined garbage collection code, and also corrected a bug in
  1494.     which file indices used in directory searches could be garbage
  1495.     collected.
  1496. file.h, *fs.c:
  1497.     Add symlink and hard link functions.
  1498. pipefs.c:
  1499.     Make FIONWRITE work again (a line was accidentally deleted).
  1500.     Make sure that Fselect() will select any pipes that have been
  1501.     closed.
  1502. dossig.c:
  1503.     Put back the user id check in Pkill.
  1504. dos.c, proc.c:
  1505.     Make sure that the "euid" and "egid" fields are set with
  1506.     the Psetuid and Psetgid calls. Also, make sure the fields
  1507.     are reset after an exec.
  1508. mem.c:
  1509.     Make exec_region shrink the process 'mem' and 'addr' tables
  1510.     to the default again if extra regions had been allocated.
  1511. dosmem.c:
  1512.     Get rid of the magic number "100", and introduce a maximum user
  1513.     settable priority MAX_NICE so that the kernel can make sure
  1514.     that a process that needs to run (e.g. an aborted vfork) will
  1515.     run first by setting its priority to MAX_NICE+1.
  1516. proc.c:
  1517.     Make sure the initial process memory tables are zeroed.
  1518. proc.c:
  1519.     Adjust the process scheduling algorithm (yet again!). Also,
  1520.     rename "nice_count" to "curpri".
  1521. dosdir.c,dos.c:
  1522.     Added Dopendir, Dreaddir, Drewinddir, Dclosedir system calls.
  1523. *fs.c:
  1524.     Made readdir return a file index (inode number) if it's not
  1525.     doing a TOS mode search.
  1526. biosfs.c:
  1527.     PHYSCONS is such an ugly name; CONSOLE makes more sense.
  1528.  
  1529. PATCHLEVEL14::
  1530.  
  1531. mem.c:
  1532.     Allow the kernel to dynamically allocate memory region
  1533.     descriptors if it runs out; also, increase the number that
  1534.     it starts with by default.
  1535. util.c:
  1536.     Made it harmless to call kfree with a NULL argument.
  1537. proc.h,mem.c,dosmem.c,proc.c:
  1538.     Eliminate the 64 region per process limit, by making the "mem"
  1539.     and "addr" arrays dynamically allocated.
  1540. proc.c:
  1541.     Change the code for selecting which process to run next; if more
  1542.     than one process is on the ready queue, we use a per-process
  1543.     counter to prevent high priority processes from hogging all the
  1544.     time.
  1545. dosmem.c:
  1546.     Release a process' controlling terminal (by setting it's process
  1547.     group back to 0) if the process is a process group leader and
  1548.     is exiting.
  1549. dosfile.c,tty.c,*fs.c:
  1550.     Made do_open set terminals up correctly on open/close, and
  1551.     handle assigning process groups to them. Also, made the terminal's
  1552.     process group be set automatically on Fforce(-1,...).
  1553. main.c,timeout.c:
  1554.     Added AKP's code for better resolution of time usage.
  1555. DELETED FILES:
  1556.     xlate.c, xlate32.s, newdisk.s
  1557. everywhere:
  1558.     Removed all references to NEED_TRANSLATION. This is getting to be a
  1559.     pain to maintain, and nobody seems to actually use it.
  1560. *fs.c:
  1561.     Fixed the ENAMETOOLONG detection code in readdir (thanks, Steve!).
  1562. timeout.c:
  1563.     New function, nap, for processes that are in busy loops waiting for
  1564.     an event that probably won't happen for a while (e.g. waiting for
  1565.     the user to hit a key); use e.g. nap(60) to sleep for 60 milliseconds
  1566.     instead of yield().
  1567. mem.c:
  1568.     create_env() should use the value from the current process' basepage,
  1569.     since this may *not* be the same as the environment the process
  1570.     was actually started with
  1571. dosfile.c:
  1572.     Make Fcntl(fh, arg, F_SETFL) leave the file sharing mode alone as well
  1573.     as the read/write mode.
  1574. unifs.c:
  1575.     Change the name "fifo" to "pipe"; change "drva", "drvb" etc. into just
  1576.     "a", "b" etc.
  1577. dosmem.c:
  1578.     Make it possible to provide a name with Pexec mode 104. Provide a new
  1579.     mode 106 that starts a process in the background and automatically
  1580.     detaches the process TPA from the parent's memory.
  1581.  
  1582. PATCHLEVEL13::
  1583.  
  1584. biosfs.c:
  1585.     Made sure that tty_getchar() won't see (long) negative values
  1586.     returned from a successful read, by clearing the high bit
  1587.     of read values.
  1588. *fs.c,atarierr.h:
  1589.     Made file systems responsible for dealing with "." and "..";
  1590.     introduced a new (fake) EMOUNT error to indicate when ".." is
  1591.     found in a root directory (this is for the benefit of the
  1592.     unified file system code)
  1593. dosdir.c,filesys.c:
  1594.     Changes to allow for the unified file system.
  1595. unifs.c, makefile:
  1596.     New file, for a "unified" file system.
  1597. filesys.c, *fs.c:
  1598.     Renamed denyaccess() to denyshare().
  1599. dosdir.c:
  1600.     Changed getname() to work from the root down instead of from
  1601.     the directory up; this should work better for mounting and
  1602.     symbolic links.
  1603. dosdir.c:
  1604.     Moved the check for a drive specifier (A:\FOO) in Dsetpath to
  1605.     where it should have been, namely before any use of the drive.
  1606. biosfs.c,pipefs.c:
  1607.     In opendir, make sure the directory structure is properly
  1608.     initialized.
  1609. dos.c:
  1610.     Changed snice and srenice to pnice and prenice; also modified the
  1611.     return values to be 16 bit (for the normal case), and 32 bit
  1612.     negative for errors, so that low priority processes can be
  1613.     distinguished from errors.
  1614. debug*.c:
  1615.     The Bconstat() check for the printer should be applied to device
  1616.     0, not 1.
  1617.  
  1618. PATCHLEVEL12::
  1619.  
  1620. dosdir.c,filesys.c:
  1621.     Re-wrote Fsfirst/next to use opendir/readdir/closedir. Re-wrote
  1622.     the pat_match function to work correctly (at least, according
  1623.     to the TOS rules :-).
  1624. *fs.c, file.h:
  1625.     Added opendir/readdir/closedir calls to file systems to allow
  1626.     more general file systems; also changed getattr into getxattr
  1627.     (again, to allow file systems with extra goodies), setattr into
  1628.     chattr, and added chown and chmod calls. Deleted sfirst/snext
  1629.     file system entry points, and the Xsfirst/Xsnext system calls.
  1630. *fs.c,file.h,dosfile.c,dosdir.c:
  1631.     Changed file systems to have separate calls for reading/writing
  1632.     volume labels. Added checks to Fattrib and Fcreate to avoid creating
  1633.     files with bad attributes (e.g. FA_LABEL or FA_DIR and anything
  1634.     else).
  1635. main.c:
  1636.     Change the definition of tosvers so that TOS 1.0 corresponds
  1637.     to tosvers == 0x100, not tosvers == 0. Also, clean up the
  1638.     code for testing TOS versions.
  1639.     WARNING: This may break RAM TOS versions. I doubt it matters.
  1640. bios.c,main.c:
  1641.     Always set the kbshft variable, so that kbshift is more
  1642.     efficient.
  1643. dos.c:
  1644.     Eliminated the old code that allowed Super(-1L) to work (GEMDOS
  1645.     doesn't support this, so why should MiNT?)
  1646. dos.c:
  1647.     Added GEMDOS date and time routines, and made sure that
  1648.     datestamp and timestamp are initialized properly when
  1649.     MiNT is started.
  1650. mem.c:
  1651.     Increased the size of the buffer used for reading relocation
  1652.     information in load_region.
  1653. *fs.c, dosfile.c:
  1654.     Changed the filesystem getdev call to return a file cookie
  1655.     (this saves a call to lookup on every open).
  1656. *fs.c, filesys.c:
  1657.     Eliminated static variables, changed all routines that used to
  1658.     return pointers to cookies to take an extra argument (a pointer
  1659.     to the place to put the result).
  1660. tosfs.c:
  1661.     Turn O_COMPAT sharing mode into O_DENYNONE (after making other
  1662.     appropriate changes to the access modes).
  1663. debugold.c:
  1664.     Updated to reflect changes in debug.c.
  1665. debug.c:
  1666.     Added calls to va_end where appropriate.
  1667. debug.c:
  1668.     Before, hitting a key paused debugging output; now, debug_ws
  1669.     checks the device that output is going to, so that e.g. if it's
  1670.     going to the MIDI port, the output is paused when a character
  1671.     arrives on the MIDI port.
  1672. mem.c:
  1673.     Made exec_region use O_DENYNONE sharing mode instead of O_DENYW
  1674.  
  1675. PATCHLEVEL11::
  1676.  
  1677. dosfile.c:
  1678.     Forbid closing file handles < 0; this will prevent accidental
  1679.     destruction of the BIOS handles.
  1680. dosfile.c:
  1681.     Change Fbiosdev to be MIDI specific, rename it to Fmidipipe, and
  1682.     move it to dosfile.c. The semantics are a bit different, too;
  1683.     see the comments in dosfile.c.
  1684. bios.c:
  1685.     Really fix the MIDI output routines, this time. (sigh)
  1686.  
  1687. PATCHLEVEL10::
  1688.  
  1689. signal.c:
  1690.     Fixed a typo in the message printed when bombs occur. Also,
  1691.     removed the copying of data from the supervisor stack to the
  1692.     BIOS area -- this was causing very strange problems, and it's
  1693.     not clear that the info would be useful under MiNT anyway.
  1694.     Finally, all this is only supposed to happen for certain
  1695.     signals, not for any random killings.
  1696.  
  1697. PATCHLEVEL9::
  1698.  
  1699. file.h, *fs.c:
  1700.     Changed the definition of the DTA buffer to free up space for
  1701.     user/group id fields and an extended attributes field. Made
  1702.     sfirst/snext use the 'aux' field of the directory cookie
  1703.     as an index.
  1704. dos.c:
  1705.     Fixed Talarm() to return the number of seconds left before an
  1706.     alarm, not the number of milliseconds.
  1707. dosdir.c:
  1708.     New system calls, Xsfirst/Xsnext, for accessing file systems
  1709.     with long (>12 character) names.
  1710. signal.c:
  1711.     Fill in the BIOS post-mortem dump error correctly after
  1712.     bus errors, address errors, etc. Also, made the "bomb" replacement
  1713.     routine give the process basepage address and program counter,
  1714.     as suggested by AKP.
  1715. tosfs.c:
  1716.     Fixed the tos_lookup bug that was causing bus errors during file
  1717.     opens.
  1718.  
  1719. PATCHLEVEL8::
  1720.  
  1721. tosfs.c:
  1722.     Made opens with O_COMPAT sharing mode always open for both reading
  1723.     and writing; this is so broken TOS programs that write to read-only
  1724.     handles will continue to work.
  1725. file.h, tty.c:
  1726.     Added TIOCGWINSZ/TIOCSWINSZ and the appropriate window size
  1727.     fields to the tty structure to support them.
  1728. dossig.c:
  1729.     Remove user id checks (for now). Make it impossible to catch
  1730.     SIGSTOP.
  1731. bios.c:
  1732.     Fix so Bconout returns a value (it really should, at least for
  1733.     the printer).
  1734. mem.c:
  1735.     Don't context switch and retry alloc_region; file systems and some
  1736.     parts of the kernel aren't expecting the context switch, and besides
  1737.     the previous change makes this tactic less likely to be helpful.
  1738. mem.c:
  1739.     Don't allocate *all* of the memory to the basepage, leave some for
  1740.     the kernel and other programs.
  1741. pipefs.c:
  1742.     Add a check for broken pipes when a program is trying to write
  1743.     atomically.
  1744. dosmem.c:
  1745.     Block job control signals during a vfork instead of ignoring
  1746.     them; this will result in the "right" thing happening after
  1747.     the exec (since the blocked signals will then be unblocked).
  1748. tosfs.c:
  1749.     Eeek! Fixed a very serious bug in the garbage collection
  1750.     routines ("i" was used where "j" should have been in a loop:
  1751.     result: things could be garbage collected that shouldn't
  1752.     have been!)
  1753. procfs.c:
  1754.     changed the return value from "dfree" to more accurately indicate
  1755.     the free memory in the system, and to also provide information
  1756.     about the smallest unit of allocable memory (currently a longword)
  1757. *fs.c,dosfile.c,dosdir.c,filesys.c:
  1758.     instead of passing fcookies to file systems, pass pointers to
  1759.     them; this should slightly improve efficiency, and greatly
  1760.     improve portability (otherwise, compilers used to make
  1761.     installable file systems would have to have the same structure
  1762.     passing/return conventions as the one that compiled the kernel)
  1763. dos.c:
  1764.     new system call, Srenice(), to change priority of a different
  1765.     process
  1766. dos.c:
  1767.     change Fbiosdev() system call to take a pid argument
  1768. proc.h, dosfile.c:
  1769.     add per-file descriptor flags for things like "close on exec"
  1770. file.h, mem.c, *fs.c:
  1771.     new file open mode, O_EXEC, for the kernel to use in Pexec
  1772. rendez.c, dos.c:
  1773.     new file from AKP to implement a simple and fast message based
  1774.     IPC; the new system call is Pmsg. Also note that the syscall number
  1775.     of Pmsg is 0x125, which used to be used by Fbiosdev; Fbiosdev has
  1776.     been moved to 0x126.
  1777. filesys.c:
  1778.     applied Steve Henson's patches to improve path2cookie's handling of
  1779.     repeated slashes
  1780. proc.h:
  1781.     MAX_OPEN should be 32, not 20!
  1782. mem.c:
  1783.     Ignore "close on exec" flag for the standard handles (for some
  1784.     reason, bash manages to set these for 0,1,2; this is probably a bug
  1785.     in the port of bash, but on the other hand it's unlikely that
  1786.     anyone would really want to close the standard handles when doing
  1787.     an exec, anyway)
  1788. tty.c:
  1789.     Fixed RAW mode reads on terminals so that they're no longer
  1790.     terminated by '\r' or '\n' (and so that pty slaves aren't forced
  1791.     to read just 1 character at a time). Thanks to AKP for catching
  1792.     this.
  1793.  
  1794. PATCHLEVEL7::
  1795.  
  1796. *fs.c:
  1797.     Cleaned up the Dpathconf() return values to better reflect
  1798.     reality, and made the code a little easier to understand.
  1799. bios.c:
  1800.     Adjust bcostat() parameters so that V:\MIDI and V:\KBD call
  1801.     the right (wrong) device (BIOS devices 3 and 4 are mixed
  1802.     up for Bcostat).
  1803. dosmem.c:
  1804.     Made sure that Malloc(0L) always returns a NULL pointer.
  1805. dosfile.c:
  1806.     Made Fclose() of handles 0, 1, 2, and 3 restore the default
  1807.     mappings. (Apparently TOS _does_ do this, after all.)
  1808. bios.c:
  1809.     AHDI 3.1 added a new parameter to Rwabs; we now pass that
  1810.     along too.
  1811. timeout.c:
  1812.     Make canceltimeout() free the memory used by the time out
  1813.     descriptor. (another Fselect bug)
  1814. signal.h:
  1815.     Removed ABORT and ALARM from list of signals that are reported
  1816.     by the kernel.
  1817. proc.c:
  1818.     Moved checkalarms() to do_wakeup_things() so that short time outs
  1819.     will be properly recognized; this fixes a nasty bug in Fselect.
  1820.  
  1821. PATCHLEVEL6::
  1822.  
  1823. pipefs.c:
  1824.     Make writes of 1024 or fewer bytes atomic. Also, increase pipe
  1825.     buffer size to 4096.
  1826. tosfs.c:
  1827.     Make O_EXCL and O_TRUNC bits useful.
  1828. tosfs.c,pipefs.c,filesys.c:
  1829.     Fully implement file sharing modes for tosfs and pipefs. A new
  1830.     routine (denyaccess) is provided in filesys.c for checking
  1831.     file open modes and determining conflicts (if any).
  1832. pipefs.c:
  1833.     If a process writes on a broken pipe while ignoring SIGPIPE,
  1834.     the write now returns -1. (Thanks, Stephen)
  1835. debug.c, bios.c:
  1836.     Applied bammi's patches to PATCHLEVEL 5 to fix some typos.
  1837.  
  1838. PATCHLEVEL5::
  1839.  
  1840. debug.c, bios.c:
  1841.     Applied AKP's debugging output patches, to allow TRACE and
  1842.     DEBUG output to go to serial ports as well as the printer.
  1843.  
  1844. PATCHLEVEL4::
  1845.  
  1846. dos.c:
  1847.     NEW SYSTEM CALL: Fbiosdev() to control redirection of BIOS
  1848.     devices.
  1849. bios.c, proc.h:
  1850.     Added binput and boutput arrays to allow for per-process redirection
  1851.     of BIOS device input and output to GEMDOS file handles.
  1852. biosfs.c:
  1853.     Changed "mdi" to "midi".
  1854.     WARNING: this change could (I suppose) break existing code.
  1855. util.c:
  1856.     Added a umalloc() function to allocate memory in user space,
  1857.     and modified the various sfirst routines to use this to
  1858.     allocate space for patterns instead of kmalloc.
  1859. dosdir.c,file.h:
  1860.     Added an FS_CASESENSITIVE flag to control conversion of file
  1861.     names to upper case for TOS domain processes.
  1862. dosdir.c, *fs.c:
  1863.     Made sfirst/snext functions take an extra argument, the length
  1864.     of the file name field in the DTA buffer (so that we can provide
  1865.     Xsfirst/Xsnext functions that can work with longer names)
  1866. mem.c:
  1867.     Fixed exec_region so that the close-on-exec flag works.
  1868. filesys.c:
  1869.     Made path2cookie take the name of the place to store the last
  1870.     component of the path name as an argument (instead of always
  1871.     storing it in the global variable temp1).
  1872. biosfs.c:
  1873.     Added code for O_NDELAY on bios devices.
  1874. tosfs.c:
  1875.     Cleaned up garbage collection a bit -- I hope this fixes the
  1876.     problems with running out of indices.
  1877. filesys.c:
  1878.     Returned the special parsing code for CON:, AUX:, etc.
  1879. file.h:
  1880.     OOPS! The flock structure was missing an element (l_whence). It
  1881.     was added.
  1882.     WARNING: This change may break existing code.
  1883. util.c:
  1884.     Made kmalloc take a long parameter, just in case installable
  1885.     file systems need lots of memory.
  1886. file.h, atarierr.h, pipefs.c:
  1887.     Made file modes compatible with _FLK specification. Also
  1888.     added the ELOCKED and ENSLOCK errors to atarierr.h, and made
  1889.     pipefs.c use ELOCKED instead of EACCDN.
  1890.     WARNING: this *will* break existing programs. In particular, mgr
  1891.     no longer works :-( because O_NDELAY has changed. (this was
  1892.     temporarily patched)
  1893. dos.c,dosfile.c:
  1894.     Added Flock() system call.
  1895. mem.c:
  1896.     Made the initial user stack pointer low enough so that syscall.s
  1897.     won't run into the end of memory if the user makes a system call
  1898.     right away and doesn't push many parameters (the code in syscall
  1899.     always tries to copy a large chunk of the caller's stack).
  1900. dosmem.c:
  1901.     Made vfork'd processes ignore job control signals (thanks to
  1902.     Stephen for pointing out how some shells rely on BSD's similar
  1903.     behaviour).
  1904.  
  1905. PATCHLEVEL3::
  1906.  
  1907. dosfile.c, file.h, *fs.c, bios.c:
  1908.     Changed f_select to use the new timeout mechanism, and provided
  1909.     routines in device drivers to wake up selecting processes.
  1910. proc.h:
  1911.     New queue, SELECT_Q, for processes doing "select", to match above
  1912.     changes
  1913. dos.c:
  1914.     Changed t_alarm to use the new timeout mechanism.
  1915. timeout.c,proc.h:
  1916.     Added a new "timeout" mechanism, so that processes can specify
  1917.     an action to be taken when a counter expires.
  1918. various places:
  1919.     Cleaned up TRACE and DEBUG output
  1920. proc.c:
  1921.     Set current directory based on the TOS current directory
  1922.     when MiNT is starting up.
  1923. debug.c:
  1924.     Added AKP's "trace" mode patch
  1925. filesys.c:
  1926.     Replaced strcmp() for . and .. with direct comparisons, again
  1927.     per AKP.
  1928. tosfs.c:
  1929.     Improved search performance a bit (indicies are now allocated
  1930.     at the beginning of the list, instead of at the end)
  1931. main.c, version.h:
  1932.     Introduced PATCHLEVEL for alpha and beta test versions    
  1933. util.c:
  1934.     Made kmalloc() try the kernel memory region first for small
  1935.     regions, to cut down fragmentation of the user's memory space
  1936. proc.h:
  1937.     Made the system stacks bigger, to compensate for the bigger
  1938.     contexts now that there's FPU support
  1939. dosmem.c:
  1940.     Fixed bug with Pexec mode 6 (thanks again, AKP)
  1941. biosfs.c:
  1942.     Changed FD0 to STDIN, FD1 to STDOUT, etc.
  1943.     WARNING: this change could break existing code
  1944. filesys.c:
  1945.     '/' is no longer a directory separator for MiNT domain processes
  1946.     (few were using it, and it simplifies things to be able to
  1947.     assume '\' is the only such separator).
  1948.     WARNING: this change could break existing code
  1949. all over the place:
  1950.     Changed the way directories/files are stored. We now have
  1951.     "file cookies" for directories, instead of strings. We
  1952.     also now have two directories per drive per process
  1953.     (a root and current).
  1954. minixfs.c:
  1955.     Removed from the main compile, and MINIX_FS symbol was also
  1956.     removed -- this will be a loadable file system someday
  1957.     (soon, I hope).
  1958. various places:
  1959.     Added Alex Kiernan's patches to support compilation under
  1960.     Lattice C v5
  1961. proc.h, context.s:
  1962.     Added Alex Kiernan's FPU co-processor patches. WARNING: this
  1963.     changes the layout of the proc structure in memory, and so
  1964.     breaks "ps" and similar programs.
  1965. proc.c:
  1966.     Changed sleep() to take the wait condition as an argument; this
  1967.     means that fewer things need to know the internals of the
  1968.     PROC structure
  1969. various places:
  1970.     Added AKP's T_TOSTOP flag changes
  1971. minixfs.c:
  1972.     Changed the 8K buffer in do_change to a static variable; our
  1973.     stacks aren't *that* big!
  1974. intr.s:
  1975.     Fixed a typo that was causing serious problems with the bus
  1976.     error and other exception codes on the TT (thanks for
  1977.     catching this, Allan).
  1978. dosmem.c,signal.c:
  1979.     Corrected the GEMDOS termination vector code (the system stack
  1980.     was being corrupted if the user's code returned). Thanks to
  1981.     Julian Reschke for catching this error.
  1982. ===========================================================================
  1983. version 0.8
  1984.  
  1985. biosfs.c, pipefs.c:
  1986.     fix ^C and ^Y to send the signals to the whole process group,
  1987.     and also to make sure processes don't read these keys if
  1988.     they're turned into signals
  1989. intr.s,dossig.c:
  1990.     fix exception handlers to be more careful about the distinction
  1991.     between being in or out of the kernel
  1992. intr.s, syscall.s, main.c:
  1993.     make sure interrupts are off before changing any vectors
  1994. bios.c:
  1995.     fixed the annoying problems with CTRL-ALT-Fx sometimes leaving
  1996.     keys in the buffer
  1997. signal.c:
  1998.     forced p_sigreturn() with no signal pending to unwind the
  1999.     *whole* signal stack, in case there were multiple signals
  2000.     pending at the time the user did a longjmp() (or whatever
  2001.     prompted the Psigreturn())
  2002. dosmem.c:
  2003.     p_wait3 now supports the WUNTRACED bit; if this isn't set,
  2004.     processes stopped due to job control are *not* returned
  2005. dosmem.c:
  2006.     removed dLibs kludge -- some programs rely on p_parent being
  2007.     non-zero to tell them that they're not accessories
  2008. various places:
  2009.     cleaned up job control stuff to be more Unix like
  2010. mem.c,util.c:
  2011.     added a new memory map for the kernel -- this should ease
  2012.     the problems with programs grabbing all of available memory
  2013. mem.c,dosmem.c:
  2014.     incorporated Allan's bugfixes; alternative RAM should work now
  2015. signal.c, main.c, intr.s:
  2016.     integrated signals with normal exceptions, so that e.g.
  2017.     a bus error raises SIGBUS. This improves the survivability
  2018.     of the kernel, so that a bus error resulting from a bad
  2019.     system call parameter won't kill MiNT, just the offending
  2020.     process.
  2021. proc.c:
  2022.     kludge to let low priority processes run every so often, even
  2023.     in the presence of a high priority process that is ready to run
  2024. atarierr.h:
  2025.     ENMFIL is -49, not -47 -- so much for Abacus' docs :-)
  2026. procfs.c:
  2027.     changes to allow read/write from process space
  2028. minixfs.[ch]:
  2029.     changed lots of function parameter types to avoid promotion and
  2030.     prototype problems with 32 bit code
  2031. bios.c:
  2032.     changed IOREC to IOREC_T to avoid name conflicts with some osbind.h
  2033. biosfs.c:
  2034.     made mouse driver change the line A mouse position variables, so MGR
  2035.     will work with bigscrn and similar large screen emulators
  2036. minixfs.c:
  2037.     new version from Stephen, now supports floppies and other removable
  2038.     media
  2039. mem.c, dosmem.c, dos.c:
  2040.     added code to support new TT TOS calls Mxalloc and Maddalt, plus
  2041.     program flags for loading/mallocing in alternate memory
  2042. bios.c,biosfs.c,dosfile.c:
  2043.     changed so that bios handles 0 and 1 can be redirected just like
  2044.     handle 2 (via the new file handles -3 and -2 respectively; AUX:
  2045.     and PRN: now refer to these files, and RS232 and CENTR to the
  2046.     physical devices)
  2047. dosdir.c:
  2048.     Dsetdrv() fixed to return an error indication when one happens
  2049. dos.c:
  2050.     fixed Super() bug (thanks Stephen)
  2051. minixfs.c:
  2052.     incorporated changes to handle 1K sector sizes
  2053.  
  2054. =============================================================================
  2055. version 0.7
  2056.  
  2057. minixfs.c:
  2058.     new file, courtesy of Stephen N. Henson (olorin@tardis.cs.ed.ac.uk)
  2059.     this is still "under construction"; see minixfs.doc for more details
  2060. bios.c:
  2061.     CTRL-ALT-UNDO now raises SIGQUIT, for the benefit of people with
  2062.     foreign ROMs (some have trouble with ^\)
  2063. filesys.c:
  2064.     changed pathname resolution code so that multiple slashes in a file
  2065.     name have the same effect as single slashes. POSIX mandates this,
  2066.     and some Unix programs expect it, too
  2067. dosmem.c:
  2068.     changed do_vfork() code so that the text segment of processes is
  2069.     *not* saved in a fork() if the process has separate text, data, and
  2070.     bss segments; this saves a fair bit of memory
  2071. proc.c:
  2072.     changed the process initialization code to better deal with job
  2073.     control; also changed handle 2 to be AUX: (as under TOS) rather
  2074.     than PRN:
  2075. bios.c:
  2076.     added CTRL-ALT-F5 (show memory usage) and CTRL-ALT-F6
  2077.     (show processes)
  2078. filesys.c:
  2079.     make explicit the fact the individual file names are limited to
  2080.     14 characters
  2081. everywhere:
  2082.     change FILENAME_MAX to PATH_MAX
  2083. mem.c:
  2084.     fixed up comments and debugging/trace info for load_region
  2085. dossig.c:
  2086.     NEW SYSTEM CALL: Psigpending() returns the set of signals that
  2087.     have been sent to the process, but not yet delivered.
  2088. dos.c, dosdir.c:
  2089.     NEW SYSTEM CALLS:
  2090.     Sysconf(n) returns information about the global limits of the
  2091.     currently running version of MiNT
  2092.     Dpathconf(name, n) returns information about the file system that
  2093.     the file "name" is located on
  2094. bios.c:
  2095.     allow CTRL-ALT-C, CTRL-ALT-\, and CTRL-ALT-Z to force a SIGINT,
  2096.     SIGQUIT, or SIGTSTP, respectively, even if the terminal is in raw
  2097.     mode
  2098. various places:
  2099.     call zero() instead of bzero()
  2100. context.s,intr.s:
  2101.     changes to make MiNT TT compatible. Thanks to Allan Pratt for this!
  2102. biosfs.c, tosfs.c, pipefs.c, procfs.c:
  2103.     fsfirst/fsnext return all upper case in TOS domain now, but
  2104.     lower case (or mixed) in MiNT domain; this is to try to wean
  2105.     programmers off of the habit of assuming everything is upper case
  2106.     (and converting accordingly)
  2107. biosfs.c:
  2108.     made mouse compatible with TOS ALT-cursor keys (the Y direction was
  2109.     wrong before)
  2110. intr.s:
  2111.     IPL 7 before reboot (thanks, Allan)
  2112. version.h, main.c:
  2113.     made version numbering a bit easier (big deal)
  2114. main.c:
  2115.     AARGH! The cookie jar stuff was plain wrong (the last cookie should
  2116.     have the total number of slots, not just the ones that are free).
  2117. main.c:
  2118.     pass current environment along to init.prg, instead of forcing an
  2119.     empty environment
  2120. signal.c:
  2121.     corrected killpg() bug (wasn't checking signals, so the current
  2122.     process didn't get the signal until later)
  2123. mem.c, dosmem.c:
  2124.     made sure that all sizes would always be rounded to the nearest
  2125.     longword. Just in case they aren't, Malloc(-1L) rounds down to the
  2126.         next smallest longword.
  2127. lots of places:
  2128.     memory handling was overhauled completely; kmalloc now allocates
  2129.     memory from the same space as do m_alloc and p_exec, so there is
  2130.     no artificial constraint on the number of processes
  2131. ===========================================================================
  2132. version 0.6
  2133.  
  2134. dos.c:
  2135.     added Talarm() and Pause() system calls
  2136. bios.c, tty.c, pipefs.c:
  2137.     added real tty structures that programs can manipulate
  2138. proc.c:
  2139.     added some sanity checks for things like stack overflow
  2140. signal.c:
  2141.     revamped signal handling so that Psigreturn() no longer needs an
  2142.     argument.
  2143. dosmem.c:
  2144.     made Pexec'ing processes immune to SIGINT, SIGHUP, and SIGTSTP
  2145. intr.s:
  2146.     fixed the Psigreturn race condition bug
  2147. biosfs.c, pipefs.c, filesys.c, util.c:
  2148.     added case-insensitive string comparison routine, and modified the
  2149.     file systems to use it
  2150. bios.c, console.c:
  2151.     changed return values of status calls from 1 to -1, to be TOS
  2152.     compatible
  2153. dos.c:
  2154.     added new calls to get resource usage, and set resource limits
  2155. dosfile.c:
  2156.     added new call, f_select
  2157. signal.c:
  2158.     changed so stopped processes always have a return code of 0177
  2159. biosfs.c:
  2160.     added a fake "third button" on the mouse (you get it by holding down
  2161.     a shift key and a mouse button)
  2162.     made mouse_read return at least 1 byte
  2163. bios.c, proc.c, biosfs.c:
  2164.     added code to check for CTRL-ALT-key combinations on every
  2165.     process switch; thus, debugging, rebooting, etc. do not require
  2166.     waiting for a read from the keyboard. Also, ^C sends a SIGINT
  2167.     immediately, and ^Z (SIGTSTP) and ^\ (SIGQUIT) take effect
  2168.     right away, too.
  2169.     CTRL-ALT-DEL supported for TOS < 1.4
  2170.  
  2171. =========================================================================
  2172. version 0.5
  2173.  
  2174. First publically released version (made available for FTP as a beta test)
  2175.  
  2176.